package com.ruoyi.project.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.system.mapper.ClientErrRecordMapper;
import com.ruoyi.project.system.domain.ClientErrRecord;
import com.ruoyi.project.system.service.IClientErrRecordService;

/**
 * 前端错误数据Service业务层处理
 * 
 * @author david
 * @date 2025-06-11
 */
@Service
public class ClientErrRecordServiceImpl implements IClientErrRecordService 
{
    @Autowired
    private ClientErrRecordMapper clientErrRecordMapper;

    /**
     * 查询前端错误数据
     * 
     * @param id 前端错误数据主键
     * @return 前端错误数据
     */
    @Override
    public ClientErrRecord selectClientErrRecordById(Long id)
    {
        return clientErrRecordMapper.selectClientErrRecordById(id);
    }

    /**
     * 查询前端错误数据列表
     * 
     * @param clientErrRecord 前端错误数据
     * @return 前端错误数据
     */
    @Override
    public List<ClientErrRecord> selectClientErrRecordList(ClientErrRecord clientErrRecord)
    {
        return clientErrRecordMapper.selectClientErrRecordList(clientErrRecord);
    }

    /**
     * 新增前端错误数据
     * 
     * @param clientErrRecord 前端错误数据
     * @return 结果
     */
    @Override
    public int insertClientErrRecord(ClientErrRecord clientErrRecord)
    {
        return clientErrRecordMapper.insertClientErrRecord(clientErrRecord);
    }

    /**
     * 修改前端错误数据
     * 
     * @param clientErrRecord 前端错误数据
     * @return 结果
     */
    @Override
    public int updateClientErrRecord(ClientErrRecord clientErrRecord)
    {
        return clientErrRecordMapper.updateClientErrRecord(clientErrRecord);
    }

    /**
     * 批量删除前端错误数据
     * 
     * @param ids 需要删除的前端错误数据主键
     * @return 结果
     */
    @Override
    public int deleteClientErrRecordByIds(Long[] ids)
    {
        return clientErrRecordMapper.deleteClientErrRecordByIds(ids);
    }

    /**
     * 删除前端错误数据信息
     * 
     * @param id 前端错误数据主键
     * @return 结果
     */
    @Override
    public int deleteClientErrRecordById(Long id)
    {
        return clientErrRecordMapper.deleteClientErrRecordById(id);
    }
}
